﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WJP.ComponentModel;
using WJP.Dependency;

namespace WJP
{
    /// <summary>
    /// 系统核心插件
    /// <para>总是第一个加载这个插件</para>
    /// </summary>
    public sealed class AppCorePlugin : PluginBase
    {
        /// <summary>
        /// 初始化前方法
        /// </summary>
        public override void PreInitialize()
        {
            IocManager.AddConventionalRegistrar(new BasicConventionalRegistrar());
        }

        public override void Initialize(IApp app)
        {
            IocManager.RegisterAssemblyByConvention(GetType().Assembly);
        }
    }
}
